Functions

Properties Example

\rho = \{ \frac{p}{q}, \frac{q}{p} \}

Functions (Mappings)

Let S and T be sets. S = \{ (1,2) \} \qquad T = \{ a,b,c \}

A function f from S to T (f:S \to T) is a subset of S \times T (f \subseteq S \times T)

For A \subseteq S, f(A) denotes \{ f(a) | a \in A \}

Summary: Three Parts of a Function

  1. A set of starting values
  2. A set from which associated values come
  3. The association itself

These rules for a function mean that functions can’t have a binary relation that is one-to-many or many-to-many.

Floor Function and Ceiling Function

Floor Function: floor(x)$

Ceiling Function: ceil(x)

Note: Both floor and ceil domains’ are all real numbers.

Equal Functions

Equal Functions: Two functions are equal if they have the same:

  1. Domain,
  2. Codomain, and
  3. Association of values

Example: Suppose:

Then:

Onto (Surjective) Functions

Onto Function: Function where the range of f equals the codomain of f

To prove that a given function is onto:

  1. Show that T \text{(domain)} \subseteq R \text{(range)} (this proves that R = T)
  2. Show that an arbitrary member of the codomain is a member of the range.

One-to-One (Injective) Functions

One-to-one Function: Function (f:S \to T) where no member of T is the image under f of two distinct elements of S.

To prove that a function is one-to-one, we assume that there are elements s_1 and s_2 of S with f(s_1) = f(s_2) and then show that s_1 = s_2

Bijective Functions

Bijective Function: Function (f: S \to T) that’s both one-to-one and onto.

Composition of Functions

Suppose f: S \to T and g: T \to U

Composition Function: Function (g \circ f) from S to U defined by (g \circ f)(s) = g(f(s))

Theorem on Composing Two Bijections: The composition of two bijections is a bijection.

Next Lecture

Next lecture (Tuesdau) will be a review section.

Each student can choose one of the four homework and make it up.

Finals will probably be graded within a day because Prof. has to travel lol.

Composition of Functions Cont.

Suppose f: S \to T and g: T \to U

Composition Function: Function (g \circ f) from S to U defined by (g \circ f)(s) = g(f(s))

Theorem on Composing Two Bijections: The composition of two bijections is a bijection.


Example: R \to R, f(x)=x^2 \qquad R \to R, g(x) = x-1 f \circ g(x) = (x-1)^2 \qquad g \circ f(x) = x^2 - 1

Inverse Functions

Identity Function: Function that maps each element of a set S to itself, leaving each element of S unchanged (i_s).

Inverse Function:

Theorem on Bijections and Inverse Functions:


Example: Suppose S = \{ 1,2,3 \} and T = \{ a,b,c \}, and that

Then:


Example: Suppose S = \{ 1,2,3 \} and T = \{ a,b,c \}, and that

Identifying f:


Example: Suppose S = \{ 1,2,3 \} and T = \{ a,b,c \}, and that

Identifying f: